package com.jrx.anytxn.customer.dto.customer;


import com.jrx.anytxn.common.constant.RegexConstant;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @ClassName AddressInfoReq
 * @Description: 地址参数
 * @Author liy
 * @Date 2019/8/5
 * @Version V1.0
 **/
public class AddressInfoReq implements Serializable {
    @NotBlank(message = "地址类型不能为空")
    @Pattern(regexp = RegexConstant.ONE_NUMBER, message = "地址类型只能是1为正整数")
    @ApiModelProperty(value="地址类型",example="0")
    private String addressType;

    @ApiModelProperty(value="省份",example="北京省")
    private String province;

    @ApiModelProperty(value="城市",example="北京市")
    private String city;

    @ApiModelProperty(value="区县",example="朝阳区")
    private String district;

    @ApiModelProperty(value="地址",example="xxx路xx号")
    private String address;

    @ApiModelProperty(value="邮编",example="45362")
    private String zipcode;

    public String getAddressType() {
        return addressType;
    }

    public void setAddressType(String addressType) {
        this.addressType = addressType;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }
}
